//
//  BIDPublishRentFooterView.m
//  HJGJCommunity
//
//  Created by mal on 2017/6/15.
//  Copyright © 2017年 mal. All rights reserved.
//

#import "BIDCreateActivityFooterView.h"
#import "BIDCustomTextView.h"
#import "BIDAddPhotoView.h"

@interface BIDCreateActivityFooterView()<BIDAddPhotoViewDelegate>

@end

@implementation BIDCreateActivityFooterView
@synthesize delegate;
@synthesize addPhotoView;
@synthesize contentTextView;

- (void)awakeFromNib
{
    [super awakeFromNib];
    contentTextView.placeholder = @"请输入需要补充的内容";
    self.addPhotoView.delegate = self;
}


#pragma mark - BIDAddPhotoViewDelegate
- (void)choosePhoto
{
    [delegate choosePhoto];
}

- (void)resizeViewWithFrame:(CGRect)frame
{
    CGRect ownFrame = self.frame;
    ownFrame.size.height = CGRectGetMaxY(frame)+8;
    [delegate resizeViewWithFrame:ownFrame];
}

- (void)showPhotoAtIndex:(NSInteger)index withImgArr:(NSArray *)arr
{
    [delegate showPhotoAtIndex:index withImgArr:arr];
}

@end
